package com.yxw.springmvc.userBehavior.convert;

import com.yxw.springmvc.userBehavior.model.BasicRole;
import com.yxw.springmvc.userBehavior.request.BasicRoleAddRequest;
import org.springframework.stereotype.Service;

/**
 * Created by hp on 2016/9/26.
 */
@Service
public class BasicRoleConvert {
    public BasicRole convert(BasicRoleAddRequest request){
        BasicRole role = new BasicRole();
        role.setCreator(request.getCreator());
        role.setCustCode(request.getCustCode());
        role.setRoleClass(request.getRoleClass());
        role.setRoleDesc(request.getRoleDesc());
        role.setRoleName(request.getRoleName());
        return role;
    }
}
